package com.example.bes.springboot.web.war.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {
    @GetMapping(value = "/")
    public ModelAndView test() {
        ModelAndView modelAndView = new ModelAndView("/index");
        modelAndView.addObject("name", "老铁");
        return modelAndView;
    }
}
